<?php
/**
 * Project: Recipe
 * File: FoodSectionModel.class.php
 * Author: Xnfy520@gmail.com
 * Date: 12-5-31
 * Time: 下午4:52
 */

class FoodSectionModel extends RelationModel{

	protected $_link = array(
//		'FoodCategory'=>array(
//			'mapping_type'=>HAS_MANY,
//			'mapping_name'=>'foodcategory',
//			'class_name'=>'FoodCategory',
//			'foreign_key'=>'foodsectionid',
//			//	'mapping_fields'=>'unit,deal',
//		),

		'FoodArticle'=>array(
			'mapping_type'=>HAS_MANY,
			'mapping_name'=>'foodarticle',
			'class_name'=>'FoodArticle',
			'foreign_key'=>'sectionid',
			'mapping_limit'=>6,
			//	'mapping_fields'=>'unit,deal',
		),
	);

}